package it.antonio.ilpizze.aop.util;

import it.antonio.ilpizze.reflection.MethodAccessor;

public class AopUtil {
	
	private static final String[] OBJECT_METHOD_NAMES = { "clone", "equals", "finalize",
			"getClass", "hashCode", "notify", "notifyAll", "toString", "wait",
			"clone" };

	public static boolean isObjectMethod(MethodAccessor method) {
		for (String objectMethodName : OBJECT_METHOD_NAMES) {
			if (method.getName().equals(objectMethodName)) {
				return true;
			}
		}
		return false;
	}
}
